package com.unicom.netpd.rpa.constant;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 状态类型
 *
 * @author liup351
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum BlockConfigEnum {

    DEFAULT("default","组件默认配置"),
    CUSTOMIZE("customize","用户自定义的组件配置"),
    ;

    @ApiModelProperty(value = "组件配置值")
    private String value;

    @ApiModelProperty(value = "组件配置描述")
    private String name;

    public static boolean containStatusValue(String statusValue){
        for(BlockConfigEnum statusTypeEnum : BlockConfigEnum.values()){
            if(statusTypeEnum.value.equals(statusValue)){
                return true;
            }
        }
        return false;
    }

}
